<!DOCTYPE html>
<html>
<head>
	<title>原生实现JS model 请求接口</title>
</head>
<body>









<script language='javascript' src='./model/Model.js?t=1'></script>
<script language='javascript' src="./model/Code.js?t=12"></script>
<script type="text/javascript">
 
  
		 
	var token = "<?php echo session ('token')?>";		
	var headers = [{
			keys: 'token',
			values: token
		}];
	var data = {
		page:1
	};
 
	function get_list(data) {
		model_code.prototype.model = new Model(headers);
		model_code.prototype.get_list(data, function(res) {
			if (res.status == 200) {
				console.log("查询成功")			 
				console.log(res.data.result)
				// return
 
		 
			} else {
	
			}
			return false;
		});
		return false;
	}
</script>


</body>
</html>